package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.R;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 订单对象 wz_order
 * @author by caoyong
 * @date 2022/11/17
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_order")
public class WzOrder {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**用户id*/
    private Long wid;

    /**用户头像*/
    private String userAvatar;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 订单类型(1-开通会员  2-聊天订单 3-视频订单 4-被聊天订单 5-被视频订单 6-邀约订单) */
    @Excel(name = "订单类型(1-开通会员  2-聊天订单 3-视频订单 4-被聊天订单 5-被视频订单 6-邀约订单)")
    private String orderType;

    /**被聊用户id*/
    private Long beUserId;

    /**被约用户id*/
    private Long aboutUserId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private Long phone;

    /** (性别:1-男 2-女) */
    @Excel(name = "(性别:1-男 2-女)")
    private String sex;

    /**被约用户红娘id*/
    private Long aboutDirectlyUid;

    /**直属红娘头像*/
    private String directlyMatchmakerAvatar;

    /** 直属红娘 */
    @Excel(name = "直属红娘")
    private String directlyMatchmaker;

    /**直属佣金*/
    private Double directlyCommission;

    /** 推荐团队 */
    @Excel(name = "推荐团队")
    private String recommendTeam;

    /**推荐佣金*/
    private Double recommendCommission;


    /** 团队红娘 */
    @Excel(name = "团队红娘")
    private String teamMatchmaker;

    /**团队佣金*/
    private Double teamCommission;

    /**邀请码*/
    private String invitationCode;

    /** 邀约信息 */
    @Excel(name = "邀约信息")
    private String invitationMessage;

    /**邀约佣金*/
    private Double invitationCommission;

    /**邀约对象姓名*/
    private String invitationName;

    /** 支付友币 */
    @Excel(name = "支付友币")
    private Long payFriendc;

    /** 状态(1-成功 2-失败 3-待邀约) */
    @Excel(name = "状态(1-成功 2-失败 3-待邀约)")
    private String state;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;

    /**团队人员*/
    @TableField(exist = false)
    private String teamMembers;

    /**是否续费会员(1-是   2-否)*/
    @TableField(exist = false)
    private String  renewal;

    /**会员类型(1-季卡  2-年卡 )*/
    @TableField(exist = false)
    private String typeOfMember;
}
